Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed:issue->#1968 Import from nYNAB fails with unknown error #2191

Merged
merged 6 commits into from
Jan 12, 2024

Conversation

Marethyu1
Copy link
Contributor

Allow case insensitive ynab5 import for special 'starting balance' payee

Fixes issue for attached budget in this #1968 (comment)
by allow case insensitive search for starting balance.

Should address #1968 as described in this comment #1968 (comment)

Copy link

netlify bot commented Jan 7, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 9740a1a
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/65a1a32ff11e5c0008c77120
😎 Deploy Preview https://deploy-preview-2191.demo.actualbudget.org/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Jan 7, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
10 5.07 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

Asset File Size % Changed
static/js/index-SWxeZUPc.js 0 B → 2.63 MB (+2.63 MB) -
static/js/ReportRouter-u-ECnBz-.js 0 B → 1.94 MB (+1.94 MB) -
static/js/wide-x6lt6lI8.js 0 B → 236.3 kB (+236.3 kB) -
static/js/BackgroundImage-J5Jegp-2.js 0 B → 122.29 kB (+122.29 kB) -
static/js/narrow-7Le0Ro4Y.js 0 B → 82.17 kB (+82.17 kB) -
static/js/FiltersMenu-n9COqW5C.js 0 B → 28.92 kB (+28.92 kB) -
static/js/BalanceTooltip-6vz3j6VD.js 0 B → 6.07 kB (+6.07 kB) -
static/js/ButtonLink-TvteIVx8.js 0 B → 379 B (+379 B) -

Removed

Asset File Size % Changed
static/js/index-J-HRzf7W.js 2.63 MB → 0 B (-2.63 MB) -100%
static/js/ReportRouter-kHvxuvO-.js 1.94 MB → 0 B (-1.94 MB) -100%
static/js/wide-igRhAA-f.js 236.3 kB → 0 B (-236.3 kB) -100%
static/js/BackgroundImage-V1jYm3hh.js 122.29 kB → 0 B (-122.29 kB) -100%
static/js/narrow-v240ErwI.js 82.17 kB → 0 B (-82.17 kB) -100%
static/js/FiltersMenu-4QE4ezd2.js 28.92 kB → 0 B (-28.92 kB) -100%
static/js/BalanceTooltip-MQNa0IKd.js 6.07 kB → 0 B (-6.07 kB) -100%
static/js/ButtonLink-X4dED4fm.js 379 B → 0 B (-379 B) -100%

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74-bhyX5Ad6.js 13.5 kB 0%
static/js/resize-observer-6FaCDon1.js 18.37 kB 0%

Copy link
Contributor

github-actions bot commented Jan 7, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.23 MB → 1.23 MB (+43 B) +0.00%
Changeset
File Δ Size
packages/loot-core/src/server/importers/ynab5.ts 📈 +321 B (+3.15%) 9.96 kB → 10.28 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
kcab.worker.js 1.23 MB → 1.23 MB (+43 B) +0.00%

Smaller

No assets were smaller

Unchanged

No assets were unchanged

@youngcw youngcw linked an issue Jan 7, 2024 that may be closed by this pull request
1 task
@MatissJanis
Copy link
Member

Thanks! Would you be OK adding the same logic for the other category/payee matchers in the same file? Might as well fix it everywhere if we've gone so far.

@trafico-bot trafico-bot bot added ⚠️ Changes requested Pull Request needs changes before it can be reviewed again and removed 🔍 Ready for Review labels Jan 8, 2024
@trafico-bot trafico-bot bot added 🔍 Ready for Review and removed ⚠️ Changes requested Pull Request needs changes before it can be reviewed again labels Jan 8, 2024
@Marethyu1 Marethyu1 force-pushed the fix-1968 branch 3 times, most recently from 4b47f15 to aad2bd6 Compare January 8, 2024 20:34
@Marethyu1
Copy link
Contributor Author

👋 I have extracted the check and applied it to all the string literals in the file. Seems like it might be out of the scope for what we initially set out to change. Let me know what y'all think, can always drop the last couple of commits. Thanks.

@Marethyu1 Marethyu1 force-pushed the fix-1968 branch 2 times, most recently from 010f4d0 to 2ffbbfa Compare January 9, 2024 23:17
MatissJanis
MatissJanis previously approved these changes Jan 11, 2024
Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Marethyu1 and others added 5 commits January 13, 2024 09:38
and reuse when checking starting balance/s on ynab4 import
when importing from ynab5 to make the check strategy consistent when importing from ynab5
Co-authored-by: Joel Jeremy Marquez <[email protected]>
Copy link
Contributor

@joel-jeremy joel-jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joel-jeremy joel-jeremy merged commit 540c410 into actualbudget:master Jan 12, 2024
19 checks passed
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Jan 12, 2024
FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 2024
…error (actualbudget#2191)

* Allow case insensitive ynab5 import for special 'starting balance' payee

* set upcoming release number to related github issue

* extract string comparison into separate function

and reuse when checking starting balance/s on ynab4 import

* make all category group checks case insensitive

when importing from ynab5 to make the check strategy consistent when importing from ynab5

* extract findById into sreusable function

to 'simplify' usage

* Add null check

Co-authored-by: Joel Jeremy Marquez <[email protected]>

---------

Co-authored-by: Joel Jeremy Marquez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Import from nYNAB fails with unknown error
3 participants